package com.ficus.road.maintain.core.exception;

import lombok.Getter;
import org.springframework.http.HttpStatus;

/**
 * @author xiawen yang
 * @date 2021/9/15 下午8:00
 */
@Getter
public class UnAuthorizedException extends RuntimeException {
    private HttpStatus status = HttpStatus.UNAUTHORIZED;

    public UnAuthorizedException(String msg) {
        super(msg);
    }

    public UnAuthorizedException(HttpStatus status, String msg) {
        super(msg);
        this.status = status;
    }
}
